<template>
    <div>
        <div class="nav-bar">
        <div class="icon" @click="onClickLeft"><van-icon name="arrow-left" /></div>
        </div>
        <van-nav-bar title="系统消息" />
    </div>
    <div class="box">
    <div>
    <span class="top_span">有新版本更新啦!</span>
    <span class="time_span">2019年3月10日 &emsp;17:21</span>
    </div>
    <div>
    <span class="top_span">发现您刚刚修改过登录密码,请妥善保管您的新密码!</span>
    <span class="time_span">2019年2月20日&emsp;10:17</span>
    </div>
    <div>
    <span class="top_span">感谢您注册维度账号,小维希望您使用我们的产品能够快乐!</span>
    <span class="time_span">2019年2月18日&emsp;14:20</span>
    </div>
    </div>
</template>

<script lang='ts' setup>


const onClickLeft = () => {
    history.back();
};
</script>

<style scoped lang="scss">
.nav-bar{
    .icon{
        position: absolute;
        margin-top: 15px;
        z-index: 999;
    }
}
.box{
     display: flex;
         flex-wrap: wrap;
     margin-left: 10px;
    div{
        width: 95%;
        height: 100px;
        margin-top: 20px;
        border-radius: 5px 5px 5px 5px;
        box-shadow: 2px 2px 2px 0px #ccc;
        border: 1px solid #ccc;
       
       
    }
    .top_span{
        display: block;
        width: 100%;
    }
    .time_span{
        margin-top: 30px;
        float: right;
    }
}
</style>